#define POWER 2
#define LED_1 3
#define LED_2 4
#define DETECT_1 5
#define DETECT_2 6

void setup() {
  pinMode(POWER, OUTPUT);
  pinMode(LED_1, INPUT);
  pinMode(LED_2, INPUT);
  pinMode(DETECT_1, OUTPUT);
  pinMode(DETECT_2, OUTPUT);
  
  digitalWrite(POWER, HIGH);
}

void loop() {
 if(digitalRead(LED_1) == HIGH) {
   digitalWrite(DETECT_1, HIGH);
 }
 else {
  digitalWrite(DETECT_1, LOW); 
 }
 if(digitalRead(LED_2) == HIGH) {
   digitalWrite(DETECT_2, HIGH);
 }
 else {
  digitalWrite(DETECT_2, LOW); 
 }
 
}
